package org.cbyyx.tc.model.dto.orderRequest;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Map;

@Data
public class OrderCreateRequest {
    /**
     * 商品ID与数量映射
     */
    @NotEmpty(message = "商品ID与数量映射不能为空")
    private Map<Long, Integer> productQuantityMap;
    
    /**
     * 收货地址ID
     */
    @NotEmpty(message = "收货地址ID不能为空")
    private Long addressId;
    
    /**
     * 备注
     */
    @NotEmpty(message = "备注不能为空")
    private String remark;
}